<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <h:head>
        <f:metadata>
            <f:viewParam name="reservationID" value="#{reservationBean.reservationID}"/>
            <f:event type="preRenderView" listener="#{reservationBean.getReservationDetail}"/>
        </f:metadata>
    </h:head>
    <h:body>
        <ui:composition template="template/masterlayout.xhtml">
            <ui:define name="pagetitle">
                Reservation of #{reservationBean.patientName}
            </ui:define>
            <ui:define name="breadcrumb">
                <h:link value="Dashboard" outcome="index"/> &raquo; <h:link value="Reservations management" outcome="reservations"/> &raquo; <h:outputText value="Reservation of #{reservationBean.patientName}"/>
            </ui:define>
            <ui:define name="content">
                <div class="druginfo detail">
                    <div class="thumb">
                        <h:graphicImage library="images" name="noimage.jpg"/>
                    </div>
                    <div class="bref">
                        <p>                            
                            <h:outputLabel for="reservationID">Reservation ID: </h:outputLabel>
                            <h:outputText id="reservationID" value="#{reservationBean.reservationID}"/>
                        </p>                        
                        <p>                            
                            <h:outputLabel for="patientName">Patient Name: </h:outputLabel>
                            <h:outputText id="patientName" value="#{reservationBean.patientName}"/>
                        </p>
                        <p>                            
                            <h:outputLabel for="patientPhoneNumber">Patient PhoneNumber: </h:outputLabel>
                            <h:outputText id="patientPhoneNumber" value="#{reservationBean.patientPhoneNumber}"/>
                        </p>
                        <p>                            
                            <h:outputLabel for="patientEmail">Patient Email: </h:outputLabel>
                            <h:outputText id="patientEmail" value="#{reservationBean.patientEmail}"/>
                        </p>
                        <p>                            
                            <h:outputLabel for="reservationTime">Reservation Time: </h:outputLabel>
                            <h:outputText id="reservationTime" value="#{reservationBean.reservationTime}"/>
                        </p>
                        <p>                            
                            <h:outputLabel for="require">Require: </h:outputLabel>
                            <h:outputText id="require" value="#{reservationBean.require}"/>
                        </p>                        
                    </div>
                    <div class="clear">                        
                    </div>
                </div>
            </ui:define>
        </ui:composition>        
    </h:body>
</html>

